<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Admin Pro Control</title>
<?
	global $kam_admin, $FullUrl;
	$kam_admin = './kam/admin/';
    //$FullUrl = 'http://localhost/SourceMau/';
?>
<? include($kam_admin.'debug.php') ?>
<link href="<?=$kam_admin?>css/layout.css" rel="stylesheet" type="text/css" />
<link href="<?=$kam_admin?>css/wysiwyg.css" rel="stylesheet" type="text/css" />
<!-- Theme Start -->
<link href="<?=$kam_admin?>css/themes/blue/styles.css" rel="stylesheet" type="text/css" />
<link href="<?=$kam_admin?>css/drag.css" rel="stylesheet" type="text/css" />
<!-- Theme End -->

<!--<link href="<?=$kam_admin?>css/jquery.ui.all.css" rel="stylesheet" type="text/css" />
<link href="<?=$kam_admin?>css/demos.css" rel="stylesheet" type="text/css" />-->

<script type='text/javascript' src='<?=$kam_admin?>js/jquery-1.9.1.min.js'></script>

<script type="text/javascript" src='<?=$FullUrl?>/js/mootools.js'></script>
<!--<script type='text/javascript' src='<?=$kam_admin?>js/online/jquery-1.7.2.min.js'></script>-->

<script> 
 var j = jQuery.noConflict();
 var j2 = jQuery.noConflict();
 var j3 = jQuery.noConflict();
  var j5 = jQuery.noConflict();
  var j6 = jQuery.noConflict(); // j6: date
</script>

<script type="text/javascript" src='<?=$FullUrl?>/js/function.js'></script>
<script language="javascript">
function setFocus()
{	
	var field = '';
	if( (document) && (document.getElementById(frmEdit)) )
	{
		field = document.frmEdit.name_vn;
	}
	//var field = document.frmEdit.name_vn !='' ? document.frmEdit.name_vn:'';
	if(field == '' || field == null)
	{}
	else
	{
		var field2 = document.frmEdit.name_vn;
		field2.focus();
		field2.value = field2.value;
		field2.focus(); 
	}
}
</script>
<!--<script type='text/javascript' src="<?=$kam_admin?>js/jquery.ui.core.js"></script>
	<script type='text/javascript' src="<?=$kam_admin?>js/jquery.ui.widget.js"></script>
	<script type='text/javascript' src="<?=$kam_admin?>js/jquery.ui.datepicker.js"></script>
<script>-->
 <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css" />
<script src="<?=$kam_admin?>/js/jquery-ui.min.js"></script>
 <script type="text/javascript">
j6(function() {
j6( "#datepicker" ).datepicker({dateFormat: 'dd-mm-yy'});
});
</script>
<!--<script>
	j6(function() {
		j6( "#datepicker" ).datepicker({
			dateFormat: 'dd-mm-yy'
		});
	});
</script>-->
</head>
<body id="homepage" <?=(isset($act)?($act=='edit_full'||$act=='add_full'?'onload="setFocus()"':''):'')?>>
<div id="header"> <a href="" title=""><img src="<?=$kam_admin?>images/cp_logo.png" alt="Control Panel" class="logo" /></a>
  <?php Template::UserControlAD('Search'); ?>
</div>

<!-- Top Breadcrumb Start -->
<div id="breadcrumb">	
	
  <ul> 
  <li><a href="admin-pro.html" title=""><img src="<?=$kam_admin?>images/icons/home.png" alt="Trang Chủ" height="27px"/></a></li>
  	<li><marquee direction="right"><a href="">Hướng Dẫn Sử Dụng Admin Pro CMS 3.0</a></marquee></li>	
  </ul>  
</div>
<div class="menushort">
	<ul class="menu2">
    	<li><a href="javascript:history.back()" title=""><img src="<?=$kam_admin?>images/icons/back.png" alt="Quay Lại" height="50px"/><span>&nbsp;Back&nbsp;</span></a></li>
        <li><a href="admin-pro.html?do=products&act=list_full" title=""><img src="<?=$kam_admin?>images/icons/list-view.png" alt="Danh Sách" height="30px"/><span>Danh sách sản phẩm</span></a></li>
        <li><a href="admin-pro.html?do=products&act=add_full<?=isset($_GET['cid'])?'&cid='.$_GET['cid']:''?>" title=""><img src="<?=$kam_admin?>images/icons/add-products.png" alt="Thêm Vào Template" title="Thêm Vào Template" height="50px"/><span>Thêm<br/>Sản phẩm</span></a></li> 
        <li><a href="admin-pro.html?do=articles&act=list_full" title=""><img src="<?=$kam_admin?>images/icons/list-view.png" alt="Danh Sách" height="30px"/><span>Danh sách tin tức</span></a></li>
        <li><a href="admin-pro.html?do=articles&act=add_full<?=isset($_GET['cid'])?'&cid='.$_GET['cid']:''?>" title=""><img src="<?=$kam_admin?>images/icons/add-articles.png" alt="Thêm Vào Tin Tức" title="Thêm Vào Tin Tức" height="50" /><span>Thêm<br/>tin tức</span></a></li>
        <li><a href="admin-pro.html?do=image_post_silder_id&act=list_full" title=""><img src="<?=$kam_admin?>images/icons/list-images.png" alt="Danh Sách" height="78px"/><span></span></a></li>
        <li><a href="admin-pro.html?do=image_post_silder_id&act=add_full<?=isset($_GET['cid'])?'&cid='.$_GET['cid']:''?>" title=""><img src="<?=$kam_admin?>images/icons/add-image.png" alt="Thêm Vào Tin Tức" title="Thêm Vào Tin Tức" height="80" /><span></span></a></li>
 	</ul>
</div>
<!-- Top Breadcrumb End --> 

<!-- Right Side/Main Content Start -->
<div id="rightside">
  <?// Template::UserControlAD('Status'); ?>
  <?// Template::UserControlAD('Usage'); ?>
  
  <?
  	//echo $do;
	//echo $act;
	
	$file_tpl = "./kam/modules/".$do."/admin/".$tpl.".ctp";
	
	if(file_exists($file_tpl))
	{
		include($file_tpl); 	
	}
	else
	{
		echo "<br/>Page is not available";		
	}
  ?>
  <?// Template::UserControlAD('Graphs'); ?>
  <?// Template::UserControlAD('HeadingsList'); ?>
  <?// Template::UserControlAD('HeadingsEdit'); ?>
  <div style="clear:both;"></div>
  <?// Template::UserControlAD('Notice'); ?>
  <?php Template::UserControlAD('CopyRight'); ?>
</div>
<!-- Right Side/Main Content End --> 

<!-- Left Dark Bar Start -->
<div id="leftside">
  <?php Template::UserControlAD('User'); ?>
  <?php Template::UserControlAD('Notifications'); ?>
  <?php Template::UserControlAD('Menu'); ?>
  <?php Template::UserControlAD('MemberOnline'); ?>
</div>
<!-- Left Dark Bar End --> 

<script type="text/javascript" src="<?=$kam_admin?>js/online/enhance.js"></script> 
<script type='text/javascript' src='<?=$kam_admin?>js/online/excanvas.js'></script> 
<!--<script type='text/javascript' src='<?=$kam_admin?>js/online/jquery-ui.min.js'></script> Move to Head -->

<!--<script type='text/javascript' src='<?=$kam_admin?>js/jquery.wysiwyg.js'></script> -->
<script type='text/javascript' src='<?=$kam_admin?>js/visualize.jQuery.js'></script> 
<script type="text/javascript" src='<?=$kam_admin?>js/functions.js'></script>
<?
	//echo $act;
	if($act != 'add_full' && $act != 'edit_full')
	{
?>
<script type='text/javascript' src='<?=$kam_admin?>js/online/jquery.min.js'></script> 

<?
	}
	else
	{
?>
	
    
	
	<script type='text/javascript' src="<?=$kam_admin?>js/jquery.filedrop.js"></script>
    <script type='text/javascript' src="<?=$kam_admin?>js/script.js"></script>
    <script type='text/javascript' src="<?=$kam_admin?>js/functions-add-edit.js"></script>
    
    
<?		
	}
?>





<!--[if IE 6]>
    <script type='text/javascript' src='scripts/png_fix.js'></script>
    <script type='text/javascript'>
      DD_belatedPNG.fix('img, .notifycount, .selected');
    </script>
    <![endif]-->
</body>
</html>
